#include <iostream>

using namespace std;

class Myclass
{
private:
    static int num;
    static void jiShu()
    {
        num++;
    }

public:
    Myclass()
    {
        jiShu();
    }
    static void printNum()
    {
        cout << num << endl;
    }
};
int Myclass::num = 0;

int main(int argc, char const *argv[])
{
    Myclass ob1;
    Myclass obs[10];
    Myclass::printNum();
    ob1.printNum();
    return 0;
}
